<?php
// +----------------------------------------------------------------------
// | Author: derek <693472824@qq.com> <http://www.bloveambition.com/>
// +----------------------------------------------------------------------

namespace Worker\Model;
use Think\Model\ViewModel;

/**
 * 消息模型层
 * derek <693472824@qq.com>
 */
class MessageViewModel extends ViewModel {

    protected $viewFields = array(
            
        'Message'   =>  array(
                            'msg_id', 'worker_id', 'site_id', 'msg_type', 'content', 'create_time', 'receipt', 'receipt_time',
                            '_type'=>'LEFT'
        ),
            
        'Orders'    =>  array(
                            'order_id', 'order_no', 'emergency', 'delay', 'appointment',
                            '_on'=>'Message.order_id = Orders.order_id'
                
        )
    );
}